计算机与现代化 ›› 2012, Vol. 1 ›› Issue (6): 134-137.doi: 10.3969/j.issn.1006-2475.2012.06.036

• 网络与通信 • 上一篇    下一篇

基于电信API长短信平台的二次开发利用

李 桐1,李朴哲2,向福林1   

  1. 1.云南大学信息学院,云南 昆明 650091;2.河北工业大学信息工程学院,天津 300401
  • 收稿日期:2011-12-15 修回日期:1900-01-01 出版日期:2012-06-14 发布日期:2012-06-14

Secondary Development and Utilization of Long SMS Platform Based on Telecommunication API

LI Tong1, LI Pu-zhe2, XIANG Fu-lin1   

  1. 1. School of Information Science and Engineering, Yunnan University, Kunming 650091, China;2. School of Information Engineering, Hebei University of Technology, Tianjin 300401, China
  • Received:2011-12-15 Revised:1900-01-01 Online:2012-06-14 Published:2012-06-14

摘要: 随着手机的普及,越来越多的信息将会利用短信进行接收。本文利用电信API将高校学生成绩从SQL数据库中提取出来,通过调用能力平台短信接口,实现Web发送短信功能,并及时发布至其监护人的手机,达到学校和家长共同监督学生学习的目的。首先介绍电信API的基本原理及接口规范,结合实际开发需要修改API中的JSON等格式;其次利用Visual Studio 2008搭建软件平台,并与利用Microsoft SQL Server建立的数据库连接;最后,从数据库中提取信息后,利用Visual Studio 2008中的“事件”触发API短信能力接口,将信息准确地发送至目标手机中,并且对其整个流程进行测试,使其符合开发要求。

关键词: 电信API, SQL数据库, JSON格式, 接口

Abstract: With the popularity of mobile phones, more and more information will be received as text messages. The telecommunication API is used to extract the scores of college students from SQL database, and the messaging interface of the ability platform is called to achieve Web functions of sending text messages, which are promptly released to the guardian phone, so that schools and parents work together to monitor student learning. This article firstly introduces the basic principles of telecommunication API and the interface specification, combines the actual development needs to modify the API JSON format; secondly, uses Visual Studio 2008 to build a software platform, which connects Microsoft SQL Server database; finally, extracts information from the database, uses the “event” in Visual Studio 2008 to trigger API interface to accurately send the information to the target phone. The whole process is tested and is satisfied to the development requirements.

Key words: telecommunication API, SQL database, JSON format, interface

中图分类号: